﻿<UserControl x:Class="UIComposition.EmployeeModule.Views.EmployeeProjectsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
             xmlns:prism="http://www.codeplex.com/prism">

	<Grid x:Name="LayoutRoot">
		<Grid.Background>
			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF7B97D4" />
				<GradientStop Color="#FF244C8D" Offset="1" />
			</LinearGradientBrush>
		</Grid.Background>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>

		<TextBlock Grid.Row="0" Text="Employee Projects View" TextWrapping="Wrap" FontSize="18" Foreground="#FF2F3806" Margin="8" />

		<StackPanel Grid.Row="1" Grid.Column="0" Margin="8">
			<TextBlock Width="Auto" Height="Auto" Text="This employee works on the following projects:" FontWeight="Bold" Margin="8" HorizontalAlignment="Left" VerticalAlignment="Top" />
			<Controls:DataGrid AutomationProperties.AutomationId="ProjectsList" ItemsSource="{Binding Projects}" AutoGenerateColumns="False">
				<Controls:DataGrid.Columns>
					<Controls:DataGridTextColumn Header="Project" Binding="{Binding Path=ProjectName}" IsReadOnly="True" Width="*" />
					<Controls:DataGridTextColumn Header="Role" Binding="{Binding Path=Role}" IsReadOnly="True" Width="*" />
				</Controls:DataGrid.Columns>
			</Controls:DataGrid>
		</StackPanel>

	</Grid>

</UserControl>